<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta charset="utf-8">
    <title> Add Task</title>
<?php echo link_tag(my_url().'skin.css'); ?>
<?php echo link_tag(my_url().'tcal.css'); ?>

<script type="text/javascript" src="<?php echo my_url(); ?>tcal.js"></script> 
<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>
<script type="text/javascript" src="../js/1.js"></script>
<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
 var BaseURL='<?php echo base_url(); ?>';
function redirect(location){
	
	window.location.href= location;
}

</script>
<script type="text/javascript" src="<?php echo my_url(); ?>js/jquery.progressbar.js"></script>
		<script type="text/javascript">
			var progress_key = '<?= $uuid ?>';

			$(document).ready(function() {
				$("#pb1").progressBar();
				$("#pb2").progressBar({ barImage: 'images/progressbg_yellow.gif'} );
				$("#pb3").progressBar({ barImage: 'images/progressbg_orange.gif', showText: false} );
				$("#pb4").progressBar(65, { showText: false, barImage: 'images/progressbg_red.gif'} );
				$(".pb5").progressBar({ max: '2000', textFormat: 'fraction', callback: function(data) { if (data.running_value == data.value) { alert("Callback example: Target reached!"); } }} );
				$("#uploadprogressbar").progressBar();
			});

			function beginUpload() {
				$("#uploadprogressbar").fadeIn();

				setInterval(function() { 
					$.getJSON("task.php?id=" + progress_key, function(data) {
						if (data == null)
							return;

						var percentage = Math.floor(100 * parseInt(data.bytes_uploaded) / parseInt(data.bytes_total));
						$("#uploadprogressbar").progressBar(percentage);
					});
				}, 1500);

				return true;
			}
		</script>
<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="skin.css" rel="stylesheet" type="text/css" />
</head>

<?php
//echo $_SESSION['administrator_log']."============";
if(!isset($_SESSION['administrator_log']))
{
		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";
}
else
{
?>
<body >

	<div class="BodyCover">
	
 		<div class="ParentContent">
	        <?php require("at_menu.php"); ?>
			<div class="MenuTab">
    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        
             </div>

			<br /><br />	
			<div class="module-index1">
		  		<div align="right"><a href="<?php echo base_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>
                
                 <form enctype='multipart/form-data' action="<?php echo base_url()?>task/p_add_task" method="post">
                        <label>Title:</label><br /> <br /> <textarea  name="txttitle" /> </textarea> <br />
	                    <label>Task From:</label> <?php  echo select_list("em_profile","em_n_name","em_n_name","employee_code","","name=txtt_from","EM"); ?> <br />
                        <label>Task To:</label> <?php  echo select_list("em_profile","em_n_name","em_n_name","employee_code","","name=txtt_to","JM"); ?> <br />
                        <label>Date:</label> <input size="14" name="txtdate" class="tcal" value="" /> <label>Completed Date:</label> <input size="14" name="txtc_date" class="tcal" value=""/><br />
                        <label>Description:</label><br /> <br /> <textarea rows="4" cols="100" name="txtdescription" /> </textarea> <br />
                         <br />
                        <input type='file' name='userfile'>
                                                        
                        <input type="submit" name='cmdUpload'  value="Submit" />
                        <input type="button"  value="Cancel" onclick="redirect(BaseURL+'task')" name="cmdcancel">
                        </form>
   	        
    		<br>
            <div class="BodyContent">
            </div>	
		</div><!---end of ParentContent ---->
           <div class="Footer1">	
                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>
                 <a href="http://webmartis.com"> <img src="<?php echo my_url();?>images/wmlink.png"></a>
                 
                </div>                
            </div> <!---end of Footer1 ---->        
        
    </div> <!---end of BodyCover ---->
</body>
<?php } ?>
</html>

